// 工作流参数接口
export interface WorkflowParam {
    id: string;
    name: string;
    type: 'string' | 'number' | 'boolean' | 'select';
    default: any;
    description?: string;
    options?: string[];
    min?: number;
    max?: number;
}

// 工作流模板接口
export interface WorkflowTemplate {
    id: string;
    name: string;
    description: string;
    author: string;
    thumbnail: string;
    workflow: Record<string, any>;
    params: WorkflowParam[];
    tags: string[];
    category: string;
    createTime: Date;
    updateTime: Date;
    isPublic: boolean;
    version: string;
    stats: {
        uses: number;
        likes: number;
        views: number;
    };
}

// 模板列表项接口
export interface TemplateListItem {
    id: string;
    name: string;
    description: string;
    thumbnail: string;
    author: string;
    tags: string[];
    category: string;
    stats: {
        uses: number;
        likes: number;
        views: number;
    };
    updateTime: Date;
}

// 分页响应接口
export interface PaginatedResponse<T> {
    items: T[];
    pagination: {
        total: number;
        page: number;
        pageSize: number;
        pages: number;
    };
}